"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function shuffle(array) {
    var _a;
    var ks = array.slice(0);
    for (var i = ks[0].length - 1; i > 0; i--) {
        var randomIndex = Math.floor(Math.random() * i + 1);
        for (var j = 0; j < ks.length; j++) {
            _a = [ks[j][randomIndex], ks[j][i]], ks[j][i] = _a[0], ks[j][randomIndex] = _a[1];
        }
    }
    return ks;
}
exports.default = shuffle;
